package com.sunkai.math;

public class ParseObjectImpl implements GetObject {

	@Override
	public <T> T getObject(String str, Class<T> clazz) throws Exception {
		if (str == null || str.trim().length() == 0) {
			throw new Exception(" string is null ");
		}
		String os = System.getProperty("os.name").toLowerCase();
		String[] array = null;
		if (os.contains("win")) {
			array = str.split("\r\n");
		} else if (os.contains("linux")) {
			array = str.split("\n");
		}
		for (int i = 0; i < array.length; i++) {
			String kv = array[i].trim();
			int index = kv.indexOf("=");
			
		}
		
		return null;
	}

}
